﻿<UserControl x:Class="LightOMator.View.ColorButton"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:conding4fun="clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <Grid x:Name="LayoutRoot">
        <Button Click="Button_Click">
            <Button.Background>
                <SolidColorBrush x:Name="ButtonBackground"  />
            </Button.Background>
        </Button>
        <Popup x:Name="ColorPickerPopup" IsOpen="False">
            <StackPanel MinWidth="480" Background="{StaticResource PhoneChromeBrush}">
                <conding4fun:ColorPicker x:Name="ColorPicker" ColorChanged="ColorPicker_ColorChanged" MinHeight="200"/>
                <Button Content="OK" Click="ButtonOk_Click" />
            </StackPanel>
        </Popup>
    </Grid>
</UserControl>